package com.share.shrimpcolo;

class SuperClass {
	private int n;

	SuperClass() {
		System.out.println("SuperClass()");
	}

	SuperClass(int n) {
		System.out.println("SuperClass(" + n + ")");
		this.n = n;
	}
	
	public void testSuper() {
		System.out.println("Super testSuper");
	}
}

class SubClass extends SuperClass {
	private int n;
	private Object int a;	

	SubClass(int n) {
		super();
		System.out.println("SubClass(" + n + ")");
		this.n = n;
	}

	SubClass() {
		//super(300);
		System.out.println("SubClass()");
	}
	
	public void testSubSuper() {
		//super.testSuper();
		System.out.println("@SubClass testSuper");
		//super.testSuper();
		
		final int a;	
	}
}

class sub1Class extends SubClass{

	sub1Class() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	void testsub1Class() {
		super.testSuper();
	}
	
}

public class TestSuper {

	public static void main(String arg[]) {
		// SubClass sc1 = new SubClass();
		SubClass sc2 = new SubClass(400);
		sc2.testSuper();
		
		System.out.println(sc2.toString());
		
	}
}
